package com.suse.warmstill.service;

import com.suse.warmstill.entity.TbRoleMenu;

import java.util.List;

public interface RoleMenuService {
    /*
     * 根据角色名字查询所有的 menu 菜单
     * */
    List<Long> listMenuByRoleId(Long roleId);

    void inserRoleMenu(Long roleId, List<Long> menuList);

    List<TbRoleMenu> listRoleByMenuId(Long MenuId);

    void deleteByMenuId(Long menuId);

    void deleteByRoleId(Long roleId);
}
